import { StatusAssessApi } from '@/api'
import CommonModel from './common'

// 公路状况评定
class StatusAssessModel extends CommonModel {
    constructor() {
        super()
        this.api = new StatusAssessApi()
    }

    // 获取状况评定模板
    getExcel() {
        return this.api.getExcel()
    }

    // 导入文件
    importExcel(file) {
        const form = new FormData()
        form.append('file', file)
        return this.api.importExcel(form)
    }
    // 路况评定数据管理-附件上传
    attachmentUpload(data) {
        return this.api.attachmentUpload(data)
    }
    // 路况评定数据管理-附件上传详情
    getDetailsByNumber(data) {
        return this.api.getDetailsByNumber(data)
    }
}

export default StatusAssessModel
